#!/usr/bin/env python
# coding: utf-8

# In[ ]:


import time

nowtime = time.strftime("%Y-%m-%d %H:%M %B")
print("当前时间：",nowtime)
print("----------------------------------")

vip_user = "xinyi"
vip_password = "123456"
count = 3
vip = 10
live = 0
while live == 0:
    member = input("登录账号请按【1】\n游客身份请按【2】\n")
    # 登录账号
    if member == "1":
        print("-----------进入登录界面-------------")
        user = input("请输入账号：")
        count -= 1
        if user in vip_user:
            password = input("请输入密码：")
            if password in vip_password:
                print("登录成功，欢迎VIP用户", user, "的使用～～")
                vip = 10
                print("您还有%s次查询课表的机会～" % (vip))
                live = 1
            else:
                if count == 0:
                    print("您的账号已被锁定，请在5分钟后再次尝试！")
                    break
                else:
                    print("您的账号或密码错误，请重新输入，还有%s次机会" % (count))
        else:
            if count == 0:
                print("您的账号已被锁定，请在5分钟后再次尝试！")
                break
            else:
                print("您的账号或密码错误，请重新输入，还有%s次机会" % (count))
                
    # 游客身份
    if member == "2":
        print("-----------进入游客界面-------------")
        vip = 5
        print("您还有%s次查询课表的机会～" % (vip))
        live = 1
        break

while live == 1:
    
    list1 = ["Monday：","9:45-12:00 python 2实203","14:30-16:50 创业实践 1-401"]
    list2 = ["Tuesday：","8:00-9:30 羽毛球 东体","14:30-15:55 H5互动 3实308","16:10-17:35 大英 10-304","18:45-20:55 毛概 9-201"]
    list3 = ["Wednesday：","18:45-20:10 毛概实践 7-403"]
    list4 = ["Thursday：","16:10-17:35 大英 10-304","19:30-21:45 园林艺术 7-205"]
    list5 = ["Friday：","8:00-9:30 ai软件应用 新综612","14:30-15:55 手绘艺术 1-203"]
    
    seek1 = input("查询周一的第一节课请按【1】\n查询周一的第二节课请按【2】\n")
    if seek1 == "1":
        list1 = ["Monday：","9:45-12:00 python 2实203","14:30-16:50 创业实践 1-401"]
        print(list1[1])
        live = 1
        vip -= 1
    else :
        list1 = ["Monday：","9:45-12:00 python 2实203","14:30-16:50 创业实践 1-401"]
        print(list1[2])
        live = 1
        vip -= 1
        
    seek2 = input("查询周二的第一节课请按【1】\n查询周二的第二节课请按【2】\n查询周二的第三节课请按【3】\n查询周二的第四节课请按【4】\n")
    if seek2 == "1":
        list2 = ["Tuesday：","8:00-9:30 羽毛球 东体","14:30-15:55 H5互动 3实308","16:10-17:35 大英 10-304","18:45-20:55 毛概 9-201"]
        print(list2[1])
        live = 1
        vip -= 1
    elif seek2 == "2":
        list2 = ["Tuesday：","8:00-9:30 羽毛球 东体","14:30-15:55 H5互动 3实308","16:10-17:35 大英 10-304","18:45-20:55 毛概 9-201"]
        print(list2[2])
        live = 1
        vip -= 1
    elif seek2 == "3":
        list2 = ["Tuesday：","8:00-9:30 羽毛球 东体","14:30-15:55 H5互动 3实308","16:10-17:35 大英 10-304","18:45-20:55 毛概 9-201"]
        print(list2[3])
        live = 1
        vip -= 1
    else :
        list2 = ["Tuesday：","8:00-9:30 羽毛球 东体","14:30-15:55 H5互动 3实308","16:10-17:35 大英 10-304","18:45-20:55 毛概 9-201"]
        print(list2[4])
        live = 1
        vip -= 1
        
    seek3 = input("查询周三的第一节课请按【1】\n")
    if seek3 == "1":
        list3 = ["Wednesday：","18:45-20:10 毛概实践 7-403"]
        print(list3[1])
        live = 1
        vip -= 1
    
    seek4 = input("查询周四的第一节课请按【1】\n查询周四的第二节课请按【2】\n")
    if seek4 == "1":
        list4 = ["Thursday：","16:10-17:35 大英 10-304","19:30-21:45 园林艺术 7-205"]
        print(list4[1])
        live = 1
        vip -= 1
    else :
        list4 = ["Thursday：","16:10-17:35 大英 10-304","19:30-21:45 园林艺术 7-205"]
        print(list4[2])
        live = 1
        vip -= 1
                  
    seek5 = input("查询周五的第一节课请按【1】\n查询周五的第二节课请按【2】\n")
    if seek5 == "1":
        list5 = ["Friday：","8:00-9:30 ai软件应用 新综612","14:30-15:55 手绘艺术 1-203"]
        print(list5[1])
        live = 1
        vip -= 1
    else :
        list5 = ["Friday：","8:00-9:30 ai软件应用 新综612","14:30-15:55 手绘艺术 1-203"]
        print(list5[2])
        live = 1
        vip -= 1

    if vip <= 0:
        print("你的次数用完了哦～～下次见啦")
        break


# 
